package com.caih.student.dao;
/*
@author zhouxiaojia
@create 2019-07-16 下午 03:16
*/
import com.caih.student.entity.Student;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.Optional;

public interface StudentDao extends JpaRepository<Student, Integer> {
    @Query(value ="select * from stu_info where stu_no=?1",nativeQuery = true)
   Optional<Student > findByStuNo(String stuNo);



}
